package com.jumi.microservice.dto.request;

import com.jm.member.common.api.volidator.Validator;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

public class AddressUpdateRequest {

    @NotNull(groups = {Validator.UpdateValidator.class})
    private Integer addressId;

    @NotNull
    @NotNull(groups = {Validator.UpdateValidator.class})
    private String trueName;

    @NotNull
    @NotNull(groups = {Validator.UpdateValidator.class})
    private Integer provinceId;

    @NotNull
    @NotNull(groups = {Validator.UpdateValidator.class})
    private Integer areaId;

    @NotNull
    @NotNull(groups = {Validator.UpdateValidator.class})
    private Integer cityId;

    @NotNull
    @NotNull(groups = {Validator.UpdateValidator.class})
    private String areaInfo;

    @NotNull
    @NotNull(groups = {Validator.UpdateValidator.class})
    private String address;

    private String telPhone;

    @NotNull
    @Pattern(regexp = "^1[0-9]{10}$",message = "手机号格式不正确！")
    @Pattern(regexp = "^1[0-9]{10}$",message = "手机号格式不正确！",groups = {Validator.UpdateValidator.class})
    private String mobPhone;

    private Integer isDefault;

    public Integer getProvinceId() {
        return provinceId;
    }

    public void setProvinceId(Integer provinceId) {
        this.provinceId = provinceId;
    }

    public Integer getAddressId() {
        return addressId;
    }

    public void setAddressId(Integer addressId) {
        this.addressId = addressId;
    }

    public Integer getIsDefault() {
        return isDefault;
    }

    public void setIsDefault(Integer isDefault) {
        this.isDefault = isDefault;
    }

    public String getTrueName() {
        return trueName;
    }

    public void setTrueName(String trueName) {
        this.trueName = trueName;
    }

    public Integer getAreaId() {
        return areaId;
    }

    public void setAreaId(Integer areaId) {
        this.areaId = areaId;
    }

    public Integer getCityId() {
        return cityId;
    }

    public void setCityId(Integer cityId) {
        this.cityId = cityId;
    }

    public String getAreaInfo() {
        return areaInfo;
    }

    public void setAreaInfo(String areaInfo) {
        this.areaInfo = areaInfo;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getTelPhone() {
        return telPhone;
    }

    public void setTelPhone(String telPhone) {
        this.telPhone = telPhone;
    }

    public String getMobPhone() {
        return mobPhone;
    }

    public void setMobPhone(String mobPhone) {
        this.mobPhone = mobPhone;
    }
}
